import Vue from "vue";
import App from "./App.vue";
import { createRouter } from "./router";
import { createStore } from "./store";

Vue.config.productionTip = false;

export function createApp() {
  let router = createRouter();
  let store = createStore();
  let app = new Vue({
    router,
    store,
    render: (h: any) => h(App),
  });
  return { app, router, store };
}